Skip to content

Commit 486c905

Browse files
committed
fix bug in getting old kv's
1 parent 1d41485 commit 486c905

File tree

1 file changed

+4
-1
lines changed
  • src/packages/server/nats/tiered-storage

1 file changed

+4
-1
lines changed

src/packages/server/nats/tiered-storage/clean.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export async function getOldKvs({
4242
const kvm = await getKvManager();
4343
const names: string[] = [];
4444
for await (const { si } of kvm.list()) {
45-
const name = si.config.name;
45+
if (!si.config.name.startsWith("KV_")) {
46+
continue;
47+
}
48+
const name = si.config.name.slice("KV_".length);
4649
if (!isProjectOrAccount(name)) {
4750
continue;
4851
}

0 commit comments

Comments
 (0)