File tree Expand file tree Collapse file tree 11 files changed +71
-12
lines changed Expand file tree Collapse file tree 11 files changed +71
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : Data Node Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' rocksdb-v[0-9]+.[0-9]+.[0-9]+b[0-9]+'
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ package :
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os : [ubuntu-20.04]
17
+ steps :
18
+ - uses : actions/checkout@v2
19
+ - name : Build
20
+ working-directory : ./dist
21
+ run : |
22
+ ./build.sh
23
+ - name : Release
24
+ uses : softprops/action-gh-release@v1
25
+ with :
26
+ generate_release_notes : true
27
+ files : ./dist/rocksdb.deb
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ buckifier/*.pyc
87
87
buckifier /__pycache__
88
88
89
89
compile_commands.json
90
+ compile_commands.events.json
90
91
clang-format-diff.py
91
92
.py3 /
92
93
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ BASEDIR=$( dirname " $0 " )
3
+ cd " $BASEDIR /.." || exit 1
4
+ PORTABLE=1 make shared_lib -j $( nproc) || exit 1
5
+ cp --no-dereference --preserve=links librocksdb.so* dist/rocksdb/usr/local/lib/
6
+ cp -r include/rocksdb dist/rocksdb/usr/local/include/
7
+ cd dist
8
+ strip -g rocksdb/usr/local/lib/librocksdb.so
9
+ rm rocksdb/usr/local/lib/.gitignore
10
+ rm rocksdb/usr/local/include/.gitignore
11
+ arch=$( uname -m)
12
+ if [ " $arch " == " aarch64" ]; then
13
+ echo " Change architecture in control file"
14
+ sed -i ' s/amd64/arm64/g' rocksdb/DEBIAN/control
15
+ fi
16
+ dpkg-deb -Zxz -b rocksdb
Original file line number Diff line number Diff line change
1
+ Package: rocksdb
2
+ Version: 8.1.1
3
+ Maintainer: Li Zhanhui
4
+ Architecture: amd64
5
+ Description: Pre-built RocksDB
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ ldconfig
Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory
2
+ *
3
+ # Except this file
4
+ ! .gitignore
Original file line number Diff line number Diff line change
1
+ # Ignore everything in this directory
2
+ *
3
+ # Except this file
4
+ ! .gitignore
Original file line number Diff line number Diff line change 15
15
16
16
#include < cassert>
17
17
18
-
19
18
#include " port/lang.h"
20
19
#if !defined(OS_WIN)
21
20
@@ -370,9 +369,9 @@ class PosixEnv : public CompositeEnv {
370
369
return Status::OK ();
371
370
}
372
371
void SetCpuSet (std::vector<int > cpu_set) override {
373
- printf (" env_posix.cc: SetCpuSet, size = %d \n " , cpu_set.size ());
374
- for ( int i = 0 ; i < cpu_set.size (); i++) {
375
- printf (" env_posix.cc: cpu_set[%d ]: %d\n " , i, cpu_set[i]);
372
+ printf (" env_posix.cc: SetCpuSet, size = %ld \n " , cpu_set.size ());
373
+ for (std::vector< int >::size_type i = 0 ; i < cpu_set.size (); i++) {
374
+ printf (" env_posix.cc: cpu_set[%ld ]: %d\n " , i, cpu_set[i]);
376
375
}
377
376
#ifdef _GNU_SOURCE
378
377
for (int processor_id : cpu_set) {
Original file line number Diff line number Diff line change @@ -2089,8 +2089,9 @@ extern ROCKSDB_LIBRARY_API void rocksdb_envoptions_destroy(
2089
2089
extern ROCKSDB_LIBRARY_API void rocksdb_create_dir_if_missing (
2090
2090
rocksdb_env_t * env , const char * path , char * * errptr );
2091
2091
2092
- extern ROCKSDB_LIBRARY_API void rocksdb_env_set_cpu_set (
2093
- rocksdb_env_t * env , const int * cpu_set , size_t n );
2092
+ extern ROCKSDB_LIBRARY_API void rocksdb_env_set_cpu_set (rocksdb_env_t * env ,
2093
+ const int * cpu_set ,
2094
+ size_t n );
2094
2095
2095
2096
/* SstFile */
2096
2097
@@ -2238,7 +2239,8 @@ extern ROCKSDB_LIBRARY_API rocksdb_fifo_compaction_options_t*
2238
2239
rocksdb_fifo_compaction_options_create (void );
2239
2240
extern ROCKSDB_LIBRARY_API void
2240
2241
rocksdb_fifo_compaction_options_set_allow_compaction (
2241
- rocksdb_fifo_compaction_options_t * fifo_opts , unsigned char allow_compaction );
2242
+ rocksdb_fifo_compaction_options_t * fifo_opts ,
2243
+ unsigned char allow_compaction );
2242
2244
extern ROCKSDB_LIBRARY_API unsigned char
2243
2245
rocksdb_fifo_compaction_options_get_allow_compaction (
2244
2246
rocksdb_fifo_compaction_options_t * fifo_opts );
Original file line number Diff line number Diff line change @@ -664,7 +664,6 @@ class Env : public Customizable {
664
664
this ->cpu_set_ .swap (cpu_set);
665
665
}
666
666
667
-
668
667
protected:
669
668
// The pointer to an internal structure that will update the
670
669
// status of each thread.
@@ -675,7 +674,7 @@ class Env : public Customizable {
675
674
676
675
// Pointer to the underlying SystemClock implementation
677
676
std::shared_ptr<SystemClock> system_clock_;
678
-
677
+
679
678
std::vector<int > cpu_set_;
680
679
681
680
private:
You can’t perform that action at this time.
0 commit comments