summaryrefslogtreecommitdiff
path: root/databases/cstore/patches/patch-al
blob: 24f2af617cd53733b46e9c294d076752494a640c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-al,v 1.2 2011/12/20 13:42:47 wiz Exp $

--- src/Util/BDBFile.cpp.orig	2005-07-09 06:23:41.000000000 +0000
+++ src/Util/BDBFile.cpp
@@ -32,6 +32,7 @@
 #include <fstream>
 #include <sstream>
 #include <string>
+#include <string.h>
 #include <map>
 #include <math.h>
 #include <cassert>
@@ -275,6 +276,7 @@ void BDBFile::closeCursor()
 
 void BDBFile::showStats()
 {
+#if 0
   DB_BTREE_STAT *pStat;
 
   dbHandle->stat(&pStat, 0);
@@ -284,10 +286,12 @@ void BDBFile::showStats()
   cout << bdbFileName << " contains "
       << pStat->bt_ndata << " records\n";
   free(pStat);  
+#endif
 }
 
 u_long BDBFile::getRecordCount()
 {
+#if 0
   DB_BTREE_STAT *pStat;
 
   dbHandle->stat(&pStat, 0);
@@ -297,6 +301,7 @@ u_long BDBFile::getRecordCount()
   u_long cnt = pStat->bt_ndata;
   free(pStat);
   return cnt;  
+#endif
 }
 
 void BDBFile::dumpDB()