summaryrefslogtreecommitdiff
path: root/src/s3ql/fsck.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/s3ql/fsck.py')
-rw-r--r--src/s3ql/fsck.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/s3ql/fsck.py b/src/s3ql/fsck.py
index a0a227a..b2c4a96 100644
--- a/src/s3ql/fsck.py
+++ b/src/s3ql/fsck.py
@@ -1315,8 +1315,8 @@ def renumber_inodes(db):
create_tables(db)
for table in ('names', 'blocks', 'objects'):
- db.execute('DROP TABLE %s' % table)
- db.execute('ALTER TABLE %s_old RENAME TO %s' % (table, table))
+ db.execute('INSERT INTO %s SELECT * FROM %s_old' % (table, table))
+ db.execute('DROP TABLE %s_old' % table)
log.info('..mapping..')
db.execute('CREATE TEMPORARY TABLE inode_map (rowid INTEGER PRIMARY KEY AUTOINCREMENT, id INTEGER UNIQUE)')