Skip to content

Commit a2e4071

Browse files
Activate new namespace incarnation in cleanup race test
1 parent 958c0d3 commit a2e4071

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎libsql-server/src/namespace/store.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,9 @@ mod directory_tests {
10541054
// detached cleanup, even after it has had another scheduling turn.
10551055
std::fs::create_dir(tmp.path().join("dbs/failed")).unwrap();
10561056
std::fs::write(tmp.path().join("dbs/failed/sentinel"), b"new owner").unwrap();
1057+
// The real create path rotates the revoked generation only after a
1058+
// fresh directory is reserved under this name's operation lock.
1059+
metadata.activate_for_create(&namespace);
10571060
metadata
10581061
.handle(namespace.clone())
10591062
.await

0 commit comments

Comments
 (0)