Skip to content

Commit

Permalink
tiny improve
Browse files Browse the repository at this point in the history
Change-Id: I70d1b3f70ac347f8e75a95d50654cf3f7f5536e8
  • Loading branch information
Linary committed Mar 29, 2021
1 parent 74c0764 commit 6d06009
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ private static Set<String> mergeOldCFs(String path, List<String> cfNames)

private static void createCheckpoint(RocksDB rocksdb, String targetPath) {
Path parentPath = Paths.get(targetPath).getParent().getFileName();
assert parentPath.startsWith("snapshot") : targetPath;
assert parentPath.toString().startsWith("snapshot") : targetPath;
// https://github.com/facebook/rocksdb/wiki/Checkpoints
try (Checkpoint checkpoint = Checkpoint.create(rocksdb)) {
String tempPath = targetPath + "_temp";
Expand Down

0 comments on commit 6d06009

Please sign in to comment.