From 908cfc1af3e761d3243d31a68420fb8994840721 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Fri, 30 May 2008 17:22:08 -0700 Subject: [PATCH] Fix a bug in signature loading for sub-file incrementals. Signatures for sub-file chunks were being written properly, but were not being loaded properly (signature data and the algorithm string were being swapped), so no sub-file incrementals were being generated. --- localdb.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localdb.cc b/localdb.cc index ecf83aa..2f5af6e 100644 --- a/localdb.cc +++ b/localdb.cc @@ -535,7 +535,7 @@ bool LocalDb::LoadChunkSignatures(ObjectReference ref, sqlite3_stmt *stmt; int found = false; - stmt = Prepare("select algorithm, signatures from subblock_signatures " + stmt = Prepare("select signatures, algorithm from subblock_signatures " "where blockid = (select blockid from block_index " " where segmentid = ? and object = ?)"); sqlite3_bind_int64(stmt, 1, SegmentToId(ref.get_segment())); -- 2.20.1