Commit 61c57215 authored by Jim Fulton's avatar Jim Fulton

Added missing vote call in initialization code that

bypasses/takes-over transaction processing.
parent 31d400a3
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Database objects """Database objects
$Id: DB.py,v 1.20 2000/01/11 19:30:53 jim Exp $""" $Id: DB.py,v 1.21 2000/08/07 19:03:55 jim Exp $"""
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[11:-2]
import cPickle, cStringIO, sys, POSException, UndoLogCompatible import cPickle, cStringIO, sys, POSException, UndoLogCompatible
from Connection import Connection from Connection import Connection
...@@ -134,6 +134,8 @@ class DB(UndoLogCompatible.UndoLogCompatible): ...@@ -134,6 +134,8 @@ class DB(UndoLogCompatible.UndoLogCompatible):
t.description='initial database creation' t.description='initial database creation'
storage.tpc_begin(t) storage.tpc_begin(t)
storage.store('\0\0\0\0\0\0\0\0', None, file.getvalue(), '', t) storage.store('\0\0\0\0\0\0\0\0', None, file.getvalue(), '', t)
if hasattr(storage, 'tpc_vote'): # whimper
storage.tpc_vote(t)
storage.tpc_finish(t) storage.tpc_finish(t)
# Allocate locks: # Allocate locks:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment