diff options
| author | Rubens Brandao <git@rubens.io> | 2024-06-05 10:47:44 -0300 |
|---|---|---|
| committer | Josh F <negasora@users.noreply.github.com> | 2024-06-24 15:04:26 -0400 |
| commit | 2bc2173e0849226329e0c26d9c049867b06a9886 (patch) | |
| tree | 206c0b1247f7f9d47acfa0cf9c7f6a8b6c161668 /python | |
| parent | 26c9af7b539dc20b6d8b0b42ecebf59b8bfc4864 (diff) | |
fix python Database.trim_snapshot
Diffstat (limited to 'python')
| -rw-r--r-- | python/database.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/database.py b/python/database.py index ded5a49b..df1b5b09 100644 --- a/python/database.py +++ b/python/database.py @@ -289,8 +289,8 @@ class Database: Trim a snapshot's contents in the database by id, but leave the parent/child hierarchy intact. Future references to this snapshot will return False for has_contents """ - if not core.BNRemoveDatabaseSnapshot(self.handle, id): - raise RuntimeError("BNRemoveDatabaseSnapshot returned False") + if not core.BNTrimDatabaseSnapshot(self.handle, id): + raise RuntimeError("BNTrimDatabaseSnapshot returned False") def remove_snapshot(self, id: int): """ |
