Skip to content
Browse files

correct spelling

  • Loading branch information...
1 parent 6522577 commit 4ccf08c3e8e28c99ef302bfdfad180443e3ab937 Mark Bucciarelli committed Oct 13, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/pv/core.py
View
8 src/pv/core.py
@@ -10,7 +10,7 @@
import re
from pv.util import baseN, NUMERALS
-class Centry:
+class Sentry:
"""Log record boundary that is used to detect partial writes.
It is not part of API"""
# TODO Put sentry values between transaction records to detect partial writes.
@@ -82,8 +82,8 @@ def replayLog():
while True:
self.serialId += 1
tx = pickle.load(log)
- centry = pickle.load(log);
- assert self.serialId == centry.serialId
+ sentry = pickle.load(log);
+ assert self.serialId == sentry.serialId
yield tx
except EOFError:
pass
@@ -97,7 +97,7 @@ def dumpVal(self, value):
def put(self, value):
self.serialId += 1
self.dumpVal(value)
- self.dumpVal(Centry(self.serialId))
+ self.dumpVal(Sentry(self.serialId))
self.logFile.flush()
def putSnapshot(self, root):

0 comments on commit 4ccf08c

Please sign in to comment.
Something went wrong with that request. Please try again.