OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-atomspace-rocks commits / ec394b6

Key removal is now blocked
ec394b6e17e2ea5772a526378263d1ab6c9c7f47
by Linas Vepštas <linasvepstas@gmail.com> · 2025-12-09T03:26:34.000Z

Changed files (2) +5 -4

tests/persist/monospace/MonoBasicDeleteUTest.cxxtest +4 -3
……@@ -306,12 +306,13 @@ void BasicDeleteUTest::test_key_deletion(void)
306306 printf("key=%s\n", k->get_name().c_str());
307307 TS_ASSERT_EQUALS(hs.size(), 3);
308308
309 // Remove one of the keys. But MonoStorage will not allow this,
310 // it explicitly observes the key is in use, and blocks the removal.
309 // Remove one of the keys. But neither the AtomSpace, nor
310 // MonoStorage allow this, and it stays both in the AtomSpace,
311 // and in storage.
311312 store->remove_atom(as, kb);
312313 as->extract_atom(kb);
313314 // +1 for *-IsKeyFlag-*
314 TS_ASSERT_EQUALS(as->get_size(), 5);
315 TS_ASSERT_EQUALS(as->get_size(), 6);
315316
316317 // Verify the key was NOT deleted by loading only PredicateNodes.
317318 delete as;
tests/persist/rocks/BasicDeleteUTest.cxxtest +1 -1
……@@ -310,7 +310,7 @@ void BasicDeleteUTest::test_key_deletion(void)
310310 store->remove_atom(as, kb);
311311 as->extract_atom(kb);
312312 // +1 for *-IsKeyFlag-*
313 TS_ASSERT_EQUALS(as->get_size(), 5);
313 TS_ASSERT_EQUALS(as->get_size(), 6);
314314
315315 // Verify the key was NOT deleted by loading only PredicateNodes.
316316 delete as;