X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=remote.cc;h=1384087c184f844ce32b49d6af9c83753abe5c10;hb=26380fc1deafddbbc78a1621b2a69169dd5b0390;hp=5f04618c89cd31de0e53466e38af4308f4600698;hpb=0dfc70e01ddb7d2bce0db03d5364c0bd3a2bb308;p=cumulus.git diff --git a/remote.cc b/remote.cc index 5f04618..1384087 100644 --- a/remote.cc +++ b/remote.cc @@ -86,7 +86,6 @@ RemoteStore::~RemoteStore() * which will upload it to the remote server. */ RemoteFile *RemoteStore::alloc_file(const string &name, const string &type) { - fprintf(stderr, "Allocate file: %s\n", name.c_str()); pthread_mutex_lock(&lock); files_outstanding++; pthread_mutex_unlock(&lock); @@ -100,8 +99,6 @@ RemoteFile *RemoteStore::alloc_file(const string &name, const string &type) * responsible for its destruction. */ void RemoteStore::enqueue(RemoteFile *file) { - fprintf(stderr, "Enqueue: %s\n", file->remote_path.c_str()); - pthread_mutex_lock(&lock); while (transfer_queue.size() >= MAX_QUEUE_SIZE) @@ -118,14 +115,12 @@ void RemoteStore::enqueue(RemoteFile *file) /* Wait for all transfers to finish. */ void RemoteStore::sync() { - fprintf(stderr, "RemoteStore::sync() start\n"); pthread_mutex_lock(&lock); while (busy) pthread_cond_wait(&cond, &lock); pthread_mutex_unlock(&lock); - fprintf(stderr, "RemoteStore::sync() end\n"); } void *RemoteStore::start_transfer_thread(void *arg) @@ -161,7 +156,6 @@ void RemoteStore::transfer_thread() pthread_mutex_unlock(&lock); // Transfer the file - fprintf(stderr, "Start transfer: %s\n", file->remote_path.c_str()); if (backup_script != "") { pid_t pid = fork(); if (pid < 0) { @@ -188,7 +182,6 @@ void RemoteStore::transfer_thread() file->local_path.c_str()); } } - fprintf(stderr, "Finish transfer: %s\n", file->remote_path.c_str()); delete file; }