1 8 9 package com.sleepycat.je.txn; 10 11 import com.sleepycat.je.utilint.DbLsn; 12 13 17 public class WriteLockInfo { 18 19 Lock lock; 20 21 25 long abortLsn = DbLsn.NULL_LSN; 26 27 30 boolean abortKnownDeleted; 31 32 36 int abortLogSize; 37 38 42 boolean neverLocked; 43 44 47 boolean createdThisTxn; 48 49 static final WriteLockInfo basicWriteLockInfo = 50 new WriteLockInfo(); 51 52 WriteLockInfo(Lock lock) { 53 this.lock = lock; 54 abortLsn = DbLsn.NULL_LSN; 55 abortKnownDeleted = false; 56 neverLocked = true; 57 createdThisTxn = false; 58 } 59 60 61 public WriteLockInfo() { 62 this.lock = null; 63 abortLsn = DbLsn.NULL_LSN; 64 abortKnownDeleted = true; 65 neverLocked = true; 66 createdThisTxn = false; 67 } 68 69 public boolean getAbortKnownDeleted() { 70 return abortKnownDeleted; 71 } 72 73 public long getAbortLsn() { 74 return abortLsn; 75 } 76 77 public void setAbortLogSize(int logSize) { 78 abortLogSize = logSize; 79 } 80 } 81 | Popular Tags |