Changeset: 26465a282900 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/26465a282900
Modified Files:
clients/Tests/exports.stable.out
gdk/gdk.h
gdk/gdk_delta.c
Branch: default
Log Message:
Removed unused function BATfakeCommit.
diffs (63 lines):
diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -120,7 +120,6 @@ BAT *BATdescriptor(bat i);
BAT *BATdiff(BAT *l, BAT *r, BAT *sl, BAT *sr, bool nil_matches, bool not_in,
BUN estimate);
BAT *BATdiffcand(BAT *a, BAT *b);
gdk_return BATextend(BAT *b, BUN newcap)
__attribute__((__warn_unused_result__));
-void BATfakeCommit(BAT *b);
gdk_return BATfirstn(BAT **topn, BAT **gids, BAT *b, BAT *cands, BAT *grps,
BUN n, bool asc, bool nilslast, bool distinct)
__attribute__((__warn_unused_result__));
restrict_t BATgetaccess(BAT *b);
ValPtr BATgetprop(BAT *b, enum prop_t idx);
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -2090,8 +2090,6 @@ gdk_export gdk_return TMsubcommit_list(b
* @multitable @columnfractions 0.08 0.6
* @item BAT *
* @tab BATcommit (BAT *b)
- * @item BAT *
- * @tab BATfakeCommit (BAT *b)
* @end multitable
*
* The BAT keeps track of updates with respect to a 'previous state'.
@@ -2104,17 +2102,8 @@ gdk_export gdk_return TMsubcommit_list(b
* BATcommit make the current BAT state the new 'stable state'. This
* happens inside the global TMcommit on all persistent BATs previous
* to writing all bats to persistent storage using a BBPsync.
- *
- * EXPERT USE ONLY: The routine BATfakeCommit updates the delta
- * information on BATs and clears the dirty bit. This avoids any
- * copying to disk. Expert usage only, as it bypasses the global
- * commit protocol, and changes may be lost after quitting or crashing
- * MonetDB.
- *
- * BATabort undo-s all changes since the previous state.
*/
gdk_export void BATcommit(BAT *b, BUN size);
-gdk_export void BATfakeCommit(BAT *b);
/*
* @+ BAT Alignment and BAT views
diff --git a/gdk/gdk_delta.c b/gdk/gdk_delta.c
--- a/gdk/gdk_delta.c
+++ b/gdk/gdk_delta.c
@@ -47,18 +47,3 @@ BATcommit(BAT *b, BUN size)
TRC_DEBUG(DELTA, "BATcommit2 %s free %zu ins " BUNFMT " base %p\n",
BATgetId(b), b->theap->free, b->batInserted, b->theap->base);
}
-
-/*
- * BATfakeCommit() flushed the delta info, but leaves the BAT marked
- * clean.
- */
-void
-BATfakeCommit(BAT *b)
-{
- if (b) {
- BATcommit(b, BUN_NONE);
- b->theap->dirty = false;
- if (b->tvheap)
- b->tvheap->dirty = false;
- }
-}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]