| changeset 204 | 947d19d39772 |
| parent 203 | c7f86f9e6f60 |
| child 293 | 83b5a2d33e3d |
1.1 --- a/core/sm_memtable.cpp Sun Dec 10 09:19:59 2006 +0000 1.2 +++ b/core/sm_memtable.cpp Wed Dec 13 11:09:43 2006 +0000 1.3 @@ -6,6 +6,7 @@ 1.4 { 1.5 membase = (unsigned char *)malloc(init_size); 1.6 size = init_size; 1.7 + tail = 0; 1.8 } 1.9 1.10 BaseMemTable::~BaseMemTable() 1.11 @@ -18,11 +19,6 @@ 1.12 { 1.13 int idx = (int)tail; 1.14 1.15 - if (idx < 0) 1.16 - { 1.17 - return -1; 1.18 - } 1.19 - 1.20 while (tail + addsize >= size) 1.21 { 1.22 size *= 2;