Report incomplete Object Storage wipes

This commit is contained in:
vorotamoroz
2026-09-01 01:23:34 +00:00
parent 9592ce8529
commit bd0581cdc9
6 changed files with 188 additions and 5 deletions
@@ -1209,8 +1209,17 @@ export class ObsidianLiveSyncSettingTab extends PluginSettingTab {
new MinioStorageAdapter(this.core.settings, this.core)
);
}
async resetRemoteBucket() {
/**
* Wipe the remote bucket through a short-lived Journal client.
* Journal wipes are batched and non-transactional, so a false result may
* leave a partial wipe which can be retried after all devices are stopped.
*/
async resetRemoteBucket(): Promise<boolean> {
const minioJournal = this.getMinioJournalSyncClient();
await minioJournal.resetBucket();
try {
return await minioJournal.resetBucket();
} finally {
minioJournal.dispose();
}
}
}