Changeset 3879

Show
Ignore:
Timestamp:
08/26/10 07:51:45 (1 year ago)
Author:
steve.schnepp
Message:

- use a binary DB to store spoolfetch timestamps

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/master/lib/Munin/Master/UpdateWorker.pm

    r3778 r3879  
    271271        my %last_updated; 
    272272 
    273         use Munin::Common::SyncDictFile; 
    274         tie(%last_updated, 'Munin::Common::SyncDictFile', $db_file) or ERROR "$!"; 
     273        use Fcntl;   # For O_RDWR, O_CREAT, etc. 
     274        use DB_File; 
     275        tie(%last_updated, 'DB_File', $db_file, O_RDWR|O_CREAT, 0666) or ERROR "$!"; 
    275276 
    276277        my $last_updated_value = $last_updated{$key} || "0"; 
     
    289290        my %last_updated; 
    290291 
    291         use Munin::Common::SyncDictFile; 
    292         tie(%last_updated, 'Munin::Common::SyncDictFile', $db_file) or ERROR "$!"; 
     292        use Fcntl;   # For O_RDWR, O_CREAT, etc. 
     293        use DB_File; 
     294        tie(%last_updated, 'DB_File', $db_file, O_RDWR|O_CREAT, 0666) or ERROR "$!"; 
    293295 
    294296        $last_updated{$key} = time;