Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iliya Manolov
neoppod
Commits
1dcb885c
Commit
1dcb885c
authored
Dec 26, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make setLastOID consistent with setLastTID.
parent
3dc40dc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
neo/master/recovery.py
neo/master/recovery.py
+1
-2
neo/master/transactions.py
neo/master/transactions.py
+1
-1
No files found.
neo/master/recovery.py
View file @
1dcb885c
...
...
@@ -55,7 +55,6 @@ class RecoveryManager(MasterHandler):
self
.
app
.
changeClusterState
(
ClusterStates
.
RECOVERING
)
em
=
self
.
app
.
em
self
.
app
.
tm
.
setLastOID
(
None
)
self
.
app
.
pt
.
setID
(
None
)
# collect the last partition table available
...
...
@@ -119,7 +118,7 @@ class RecoveryManager(MasterHandler):
def
answerLastIDs
(
self
,
conn
,
loid
,
ltid
,
lptid
):
# Get max values.
if
loid
is
not
None
:
self
.
app
.
tm
.
setLastOID
(
max
(
loid
,
self
.
app
.
tm
.
getLastOID
())
)
self
.
app
.
tm
.
setLastOID
(
loid
)
if
ltid
is
not
None
:
self
.
app
.
tm
.
setLastTID
(
ltid
)
if
lptid
>
self
.
target_ptid
:
...
...
neo/master/transactions.py
View file @
1dcb885c
...
...
@@ -266,7 +266,7 @@ class TransactionManager(object):
return
False
def
setLastOID
(
self
,
oid
):
self
.
_last_oid
=
oid
self
.
_last_oid
=
max
(
oid
,
self
.
_last_oid
)
def
getLastOID
(
self
):
return
self
.
_last_oid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment