Changeset: 50dcdc52b1c4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=50dcdc52b1c4
Modified Files:
clients/Tests/exports.stable.out
gdk/gdk.h
gdk/gdk_bbp.c
Branch: default
Log Message:
Cleanup: remove unused functions BBPlogical and BBPphysical.
diffs (85 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
@@ -189,9 +189,7 @@ bat BBPindex(const char *nme);
void BBPkeepref(bat i);
bat BBPlimit;
void BBPlock(void);
-str BBPlogical(bat b, str buf);
int BBPout;
-str BBPphysical(bat b, str buf);
BAT *BBPquickdesc(bat b, int delaccess);
int BBPreclaim(BAT *b);
int BBPrelease(bat b);
diff --git a/gdk/gdk.h b/gdk/gdk.h
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -1580,11 +1580,7 @@ gdk_export void GDKqsort_rev(void *h, vo
* @end multitable
*
* The BAT Buffer Pool module contains the code to manage the storage
- * location of BATs. It uses two tables BBPlogical and BBphysical to
- * relate the BAT name with its corresponding file system name. This
- * information is retained in an ASCII file within the database home
- * directory for ease of inspection. It is loaded upon restart of the
- * server and saved upon transaction commit (if necessary).
+ * location of BATs.
*
* The remaining BBP tables contain status information to load, swap
* and migrate the BATs. The core table is BBPcache which contains a
@@ -1666,8 +1662,6 @@ gdk_export void BBPlock(void);
gdk_export void BBPunlock(void);
-gdk_export str BBPlogical(bat b, str buf);
-gdk_export str BBPphysical(bat b, str buf);
gdk_export BAT *BBPquickdesc(bat b, int delaccess);
/*
diff --git a/gdk/gdk_bbp.c b/gdk/gdk_bbp.c
--- a/gdk/gdk_bbp.c
+++ b/gdk/gdk_bbp.c
@@ -217,8 +217,8 @@ int BBPout = 0; /* bats saved statisti
* operations may be ongoing while at the same time at most one BBP
* write operation @strong{on a different BAT} is executing. This
* holds for accesses to the public (quasi-) arrays @emph{BBPcache},
- * @emph{BBPstatus}, @emph{BBPrefs}, @emph{BBPlogical} and
- * @emph{BBPphysical}. These arrays are called quasi as now they are
+ * @emph{BBPstatus} and @emph{BBPrefs}.
+ * These arrays are called quasi as now they are
* actually stored together in one big BBPrec array called BBP, that
* is allocated in anonymous VM space, so we can reallocate this
* structure without changing the base address (a crucial feature if
@@ -2161,32 +2161,6 @@ BBPgetdesc(bat i)
return NULL;
}
-str
-BBPlogical(bat bid, str buf)
-{
- if (buf == NULL) {
- return NULL;
- } else if (BBPcheck(bid, "BBPlogical")) {
- strcpy(buf, BBP_logical(bid));
- } else {
- *buf = 0;
- }
- return buf;
-}
-
-str
-BBPphysical(bat bid, str buf)
-{
- if (buf == NULL) {
- return NULL;
- } else if (BBPcheck(bid, "BBPphysical")) {
- strcpy(buf, BBP_physical(bid));
- } else {
- *buf = 0;
- }
- return buf;
-}
-
/*
* @+ BBP Update Interface
* Operations to insert, delete, clear, and modify BBP entries.
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list