Changeset 60

Show
Ignore:
Timestamp:
11/11/05 05:28:41 (3 years ago)
Author:
ged
Message:

* Fixed the segfault during conversion. Thanks to Claus W. Spitzer for finding

this and sending me a patch. (Fixes #1)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/convertdb.rb

    r41 r60  
    1717# == Copyright 
    1818# 
    19 # Copyright (c) 2003 The FaerieMUD Consortium. All rights reserved. 
     19# Copyright (c) 2003, 2005 The FaerieMUD Consortium. All rights reserved. 
    2020#  
    2121# This module is free software. You may use, modify, and/or redistribute this 
     
    2525# == Version 
    2626# 
    27 #  $Id: convertdb.rb,v 1.5 2003/09/03 05:32:08 deveiant Exp $ 
     27#  $Id$ 
    2828#  
    2929 
     
    181181 
    182182                # Commit and start a new transaction every 1000 records 
    183                 if (entries % CommitThreshold).nonzero? 
     183                if (entries % CommitThreshold).zero? 
     184                    print "." 
    184185                    txn.commit( BDB::TXN_NOSYNC ) 
    185186                    txn, dbh = lexicon.env.txn_begin( 0, set.db )