Commit 5abfa5fd authored by Julien Muchembled's avatar Julien Muchembled

fixup! storage: speed up replication by not getting object next_serial for nothing

parent 121b3882
......@@ -705,7 +705,7 @@ class MySQLDatabaseManager(DatabaseManager):
def _fetchObject(self, oid, tid):
r = self.query(
'SELECT tid, compression, data.hash, value, value_tid'
' FROM obj FORCE INDEX(`partition`)'
' FROM obj FORCE INDEX(PRIMARY)'
' LEFT JOIN data ON (obj.data_id = data.id)'
' WHERE `partition` = %d AND oid = %d AND tid = %d'
% (self._getReadablePartition(oid), oid, tid))
......
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