From 2bc2173e0849226329e0c26d9c049867b06a9886 Mon Sep 17 00:00:00 2001 From: Rubens Brandao Date: Wed, 5 Jun 2024 10:47:44 -0300 Subject: fix python Database.trim_snapshot --- python/database.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/database.py') 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): """ -- cgit v1.3.1