Commit de186436 authored by Saikumar's avatar Saikumar

commented unnecessary printfs

parent 83c4a0ff
......@@ -103,7 +103,7 @@ void insert(string key, string value) {
}
string GET(string key) {
printf("GET function\n");
// printf("GET function\n");
pthread_mutex_lock(&cLock);
string ans = search(key);
pthread_mutex_unlock(&cLock);
......
127.1.1.2
20000
10
\ No newline at end of file
20
\ No newline at end of file
......@@ -613,7 +613,7 @@ string GETT(char * key){
}
else
{
printf("%s = %s \n",key ,dh->key);
// printf("%s = %s \n",key ,dh->key);
if((tt=strcmp(key,dh->key))==0)
{
char filename2[10];
......@@ -715,7 +715,7 @@ void PUTT(char *key,char *value){
write(n,ts,257);
close(n);
}
printf("PUTT completed\n");
// printf("PUTT completed\n");
sem_post(&w);
}
......@@ -733,7 +733,7 @@ struct n2 * checkfile(struct n2 *h2,char *s){
else{
// printf("%s = %s \n",h2->filename,s);
if(strcmp(h2->filename,s)==0){
printf("if \n");
// printf("if \n");
return h2;}
else{
h2=h2->pointer;
......@@ -802,7 +802,7 @@ void pp(struct n1*r){
}
pp(r->p1);
printf("%s\n",r->key);
// printf("%s\n",r->key);
pp(r->p2);
}
......@@ -810,7 +810,7 @@ void pp2(struct n1*r){
if(r==NULL){
return;
}
printf("%s\n",r->key);
// printf("%s\n",r->key);
pp2(r->p1);
......
......@@ -52,7 +52,7 @@ void *respondToClient(void *args) {
string key_string, value_string;
switch(todo) {
case '1':
// printf("GET :\n");
printf("GET :\n");
printf("Key: %s\n", key);
// j = search(key);
// printf("j=%d\n", j);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment