We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c210122 + 5415282 commit bb84f4eCopy full SHA for bb84f4e
db/compaction/compaction_job.cc
@@ -1764,6 +1764,7 @@ void CompactionJob::RunRemote(PluggableCompactionService* service) {
1764
}
1765
param.input_files.push_back(files_in_one_level);
1766
1767
+ param.shutting_down = shutting_down_;
1768
1769
// make the RPC
1770
status = service->Run(param, &result);
include/rocksdb/pluggable_compaction.h
@@ -39,6 +39,9 @@ class PluggableCompactionParam {
39
40
// The level to which the files are compacted into
41
int output_level;
42
+
43
+ // Control whether the DB is shutting down
44
+ const std::atomic<bool>* shutting_down;
45
};
46
47
//
0 commit comments