mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-01 08:17:07 +00:00
Report incomplete Object Storage wipes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user