Skip to content
This repository was archived by the owner on Aug 10, 2025. It is now read-only.

Commit 37b3638

Browse files
committed
Fix the setting of NVMEvicted flag.
1 parent 074da8d commit 37b3638

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/ee/anticache/AntiCacheEvictionManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
#include <time.h>
4848
#include <stdlib.h>
4949
// FIXME: This is relatively small. 2500 might be a better guess
50-
//#define MAX_EVICTED_TUPLE_SIZE 1060
51-
#define MAX_EVICTED_TUPLE_SIZE 2500
50+
#define MAX_EVICTED_TUPLE_SIZE 1060
51+
//#define MAX_EVICTED_TUPLE_SIZE 2500
5252

5353
namespace voltdb
5454
{

src/ee/storage/persistenttable.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ bool PersistentTable::insertTuple(TableTuple &source) {
545545
m_tmpTarget1.copyForPersistentInsert(source, NULL); // tuple in freelist must be already cleared
546546
m_tmpTarget1.setDeletedFalse();
547547
m_tmpTarget1.setEvictedFalse();
548+
m_tmpTarget1.setNVMEvictedFalse();
548549

549550
/**
550551
* Inserts never "dirty" a tuple since the tuple is new, but... The

src/ee/storage/table.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -544,6 +544,7 @@ void Table::loadTuplesFromNoHeader(bool allowExport,
544544
m_tmpTarget1.setDeletedFalse();
545545
m_tmpTarget1.setDirtyFalse();
546546
m_tmpTarget1.setEvictedFalse();
547+
m_tmpTarget1.setNVMEvictedFalse();
547548
m_tmpTarget1.deserializeFrom(serialize_io, stringPool);
548549

549550
processLoadedTuple( allowExport, m_tmpTarget1);

src/ee/storage/table.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ inline void Table::deleteTupleStorage(TableTuple &tuple) {
594594
inline void Table::deleteTupleStorage(TableTuple &tuple) {
595595
tuple.setDeletedTrue(); // does NOT free strings
596596
tuple.setEvictedFalse();
597+
tuple.setNVMEvictedFalse();
597598

598599
// add to the free list
599600
m_tupleCount--;

0 commit comments

Comments
 (0)