Skip to content

Commit 751e4b1

Browse files
committed
Fix wal_dir sanitizing
1 parent 7efdd9e commit 751e4b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/db_impl.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ Options SanitizeOptions(const std::string& dbname,
323323
result.wal_dir = dbname;
324324
}
325325
if (result.wal_dir.back() == '/') {
326-
result.wal_dir = result.wal_dir.substr(result.wal_dir.size() - 1);
326+
result.wal_dir = result.wal_dir.substr(0, result.wal_dir.size() - 1);
327327
}
328328

329329
// -- Sanitize the table properties collector

0 commit comments

Comments
 (0)