Skip to content

Commit

Permalink
fix RocksDB compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mpilman committed Oct 5, 2022
1 parent 67076aa commit 0361cf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
3 changes: 1 addition & 2 deletions fdbserver/KeyValueStoreRocksDB.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1177,10 +1177,9 @@ struct RocksDBKeyValueStore : IKeyValueStore {
if (doPerfContextMetrics) {
perfContextMetrics->reset();
}
double commitBeginTime;
double commitBeginTime = timer_monotonic();
sharedState->commitQueueLatency->addMeasurement(commitBeginTime - a.startTime);
if (a.getHistograms) {
commitBeginTime = timer_monotonic();
metricPromiseStream->send(
std::make_pair(ROCKSDB_COMMIT_QUEUEWAIT_HISTOGRAM.toString(), commitBeginTime - a.startTime));
}
Expand Down
14 changes: 7 additions & 7 deletions fdbserver/KeyValueStoreShardedRocksDB.actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2991,16 +2991,16 @@ TEST_CASE("noSim/ShardedRocksDB/Metadata") {
{
auto mapping = rocksdbStore->getDataMapping();
ASSERT(mapping.size() == 3);
}

// Remove ranges again.
kvStore->persistRangeMapping(KeyRangeRef("a"_sr, "f"_sr), false);
kvStore->removeRange(KeyRangeRef("a"_sr, "f"_sr));
// Remove ranges again.
kvStore->persistRangeMapping(KeyRangeRef("a"_sr, "f"_sr), false);
kvStore->removeRange(KeyRangeRef("a"_sr, "f"_sr));

mapping = rocksdbStore->getDataMapping();
ASSERT(mapping.size() == 1);
mapping = rocksdbStore->getDataMapping();
ASSERT(mapping.size() == 1);

wait(kvStore->commit(false));
wait(kvStore->commit(false));
}

// Restart.
{
Expand Down

0 comments on commit 0361cf7

Please sign in to comment.