Changeset: 6d322184bf9a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6d322184bf9a
Modified Files:
MonetDB/src/gdk/gdk_bbp.mx
Branch: Jun2010
Log Message:
Fixed some comments.
diffs (41 lines):
diff -r 88ac4300b565 -r 6d322184bf9a MonetDB/src/gdk/gdk_bbp.mx
--- a/MonetDB/src/gdk/gdk_bbp.mx Mon Aug 16 13:15:32 2010 +0200
+++ b/MonetDB/src/gdk/gdk_bbp.mx Mon Aug 16 17:46:08 2010 +0200
@@ -151,16 +151,16 @@
#include "gdk_storage.h"
@}
@-
-The BBP has now a fixed address, so re-allocation due to a growing BBP
+The BBP has a fixed address, so re-allocation due to a growing BBP
caused by one thread does not disturb reads to the old entries by another.
This is implemented using anonymous virtual memory; extensions on the same
address are guaranteed because a large non-committed VM area is requested
-initially. New slots in the BBP are found at O(1) by keeping a freelist
+initially. New slots in the BBP are found in O(1) by keeping a freelist
that uses the 'next' field in the BBPrec records.
@{
@c
BBPrec *BBP = NULL; /* fixed base VM address of BBP array */
-bat BBPmaxsize = BBPMAXSIZE; /* size of non-commited VM BBP array */
+bat BBPmaxsize = BBPMAXSIZE; /* size of non-committed VM BBP array */
bat BBPlimit = 0; /* current committed VM BBP array */
bat BBPsize = 0; /* current used size of BBP array */
@@ -475,7 +475,7 @@
recover_dir(int direxists)
{
if (direxists) {
- /* just try; don't care about these nonvital files */
+ /* just try; don't care about these non-vital files */
GDKunlink(BATDIR, "BBP", "bak");
GDKmove(BATDIR, "BBP", "dir", BATDIR, "BBP", "bak");
}
@@ -489,7 +489,7 @@
/* Convert the old-style string heap to the new style.
This function must be called at the end of BBPinit(), just before
"normal processing" starts. All errors that happen during the
- conversion are fatal. This function is "save" in the sense that
+ conversion are fatal. This function is "safe" in the sense that
when it is interrupted, recovery will just start over. No
permanent changes are made to the database until all string heaps
have been converted, and then the changes are made atomically.
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list