aboutsummaryrefslogtreecommitdiff
path: root/src/dht/plugin_dhtlog_mysql_dump.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-11 11:18:34 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-11 11:18:34 +0000
commit9e921c69007ba709fee460751d7f20237dd56ed7 (patch)
tree27077c143c90585bdce863f19135e4db17c4a0d6 /src/dht/plugin_dhtlog_mysql_dump.c
parent1b18069ef2567ffe0994c799d1d179329d629ca9 (diff)
downloadgnunet-9e921c69007ba709fee460751d7f20237dd56ed7.tar.gz
gnunet-9e921c69007ba709fee460751d7f20237dd56ed7.zip
Adding replication parameter for initiating GET and PUT requests to the DHT.
Diffstat (limited to 'src/dht/plugin_dhtlog_mysql_dump.c')
-rw-r--r--src/dht/plugin_dhtlog_mysql_dump.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/dht/plugin_dhtlog_mysql_dump.c b/src/dht/plugin_dhtlog_mysql_dump.c
index 6b6133068..1e549d115 100644
--- a/src/dht/plugin_dhtlog_mysql_dump.c
+++ b/src/dht/plugin_dhtlog_mysql_dump.c
@@ -289,7 +289,7 @@ add_extended_topology (const struct GNUNET_PeerIdentity *first, const struct GNU
289int add_trial (struct GNUNET_DHTLOG_TrialInfo *trial_info) 289int add_trial (struct GNUNET_DHTLOG_TrialInfo *trial_info)
290{ 290{
291 int ret; 291 int ret;
292 trial_info->trialuid = 0; 292
293 if (outfile == NULL) 293 if (outfile == NULL)
294 return GNUNET_SYSERR; 294 return GNUNET_SYSERR;
295 295
@@ -505,23 +505,14 @@ add_node (unsigned long long *nodeuid, struct GNUNET_PeerIdentity * node)
505/* 505/*
506 * Update dhttests.trials table with current server time as end time 506 * Update dhttests.trials table with current server time as end time
507 * 507 *
508 * @param trialuid trial to update
509 * @param gets_succeeded how many gets did the testcase report as successful 508 * @param gets_succeeded how many gets did the testcase report as successful
510 * 509 *
511 * @return GNUNET_OK on success, GNUNET_SYSERR on failure. 510 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
512 */ 511 */
513int 512int
514update_trials (unsigned long long trialuid, 513update_trials (unsigned int gets_succeeded)
515 unsigned int gets_succeeded)
516{ 514{
517 int ret; 515 int ret;
518#if DEBUG_DHTLOG
519/* if (trialuid != current_trial)
520 {
521 fprintf (stderr,
522 _("Trialuid to update is not equal to current_trial\n"));
523 }*/
524#endif
525 516
526 if (outfile == NULL) 517 if (outfile == NULL)
527 return GNUNET_SYSERR; 518 return GNUNET_SYSERR;
@@ -573,22 +564,15 @@ set_malicious (struct GNUNET_PeerIdentity *peer)
573/* 564/*
574 * Update dhttests.trials table with total connections information 565 * Update dhttests.trials table with total connections information
575 * 566 *
576 * @param trialuid the trialuid to update
577 * @param totalConnections the number of connections 567 * @param totalConnections the number of connections
578 * 568 *
579 * @return GNUNET_OK on success, GNUNET_SYSERR on failure. 569 * @return GNUNET_OK on success, GNUNET_SYSERR on failure.
580 */ 570 */
581int 571int
582add_connections (unsigned long long trialuid, unsigned int totalConnections) 572add_connections (unsigned int totalConnections)
583{ 573{
584 int ret; 574 int ret;
585#if DEBUG_DHTLOG 575
586/* if (trialuid != current_trial)
587 {
588 fprintf (stderr,
589 _("Trialuid to update is not equal to current_trial(!)(?)\n"));
590 }*/
591#endif
592 if (outfile == NULL) 576 if (outfile == NULL)
593 return GNUNET_SYSERR; 577 return GNUNET_SYSERR;
594 578