                             c()
                     async.map(files, f, cb)
         (cb) ->
-            winston.debug("removing refs/heads/master.lock if present")
+            winston.debug("rollback_last_save: removing refs/heads/master.lock if present")
             lock = "#{info.bup_dir}/refs/heads/master.lock"
             fs.exists lock, (exists) ->
                 if exists

                else
                    cb()

    ], opts.cb)



# 30 minutes.
ensure_snapshot_queue_working = () ->
    if monitor_snapshot_queue_last_run?
        if misc.walltime() - monitor_snapshot_queue_last_run > DEFAULT_TIMEOUT*1.2
            winston.debug("ensure_snapshot_queue_working: BUG/ERROR ** monitor_snapshot_queue has not been called in too long -- restarting, but you need to fix this. check logs!")
            winston.debug("ensure_snapshot_queue_working: connecting to database")
            connect_to_database (err) =>
                winston.debug("ensure_snapshot_queue_working: connect_to_databasegot back err=#{err}")
