diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-20 13:22:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-20 13:22:28 +0100 |
commit | 1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2 (patch) | |
tree | 0836dfdaad0094bd7ea55207eae0da830073d06b /src/rps/gnunet-service-rps.c | |
parent | 5246093bf9f9bb7f16dc1e1e66eadb21363fb1a0 (diff) | |
download | gnunet-1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2.tar.gz gnunet-1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2.zip |
disable TO_FILE logic, causes assertion failures all the time (NULL filename)
Diffstat (limited to 'src/rps/gnunet-service-rps.c')
-rw-r--r-- | src/rps/gnunet-service-rps.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 08f2450f5..9dba04316 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -2576,7 +2576,7 @@ insert_in_sampler (void *cls, | |||
2576 | * messages to it */ | 2576 | * messages to it */ |
2577 | //indicate_sending_intention (peer); | 2577 | //indicate_sending_intention (peer); |
2578 | } | 2578 | } |
2579 | #ifdef TO_FILE | 2579 | #ifdef TO_FILE |
2580 | sub->num_observed_peers++; | 2580 | sub->num_observed_peers++; |
2581 | GNUNET_CONTAINER_multipeermap_put | 2581 | GNUNET_CONTAINER_multipeermap_put |
2582 | (sub->observed_unique_peers, | 2582 | (sub->observed_unique_peers, |
@@ -2590,7 +2590,7 @@ insert_in_sampler (void *cls, | |||
2590 | sub->num_observed_peers, | 2590 | sub->num_observed_peers, |
2591 | num_observed_unique_peers, | 2591 | num_observed_unique_peers, |
2592 | 1.0*num_observed_unique_peers/sub->num_observed_peers) | 2592 | 1.0*num_observed_unique_peers/sub->num_observed_peers) |
2593 | #endif /* TO_FILE */ | 2593 | #endif /* TO_FILE */ |
2594 | } | 2594 | } |
2595 | 2595 | ||
2596 | 2596 | ||
@@ -2874,7 +2874,7 @@ new_sub (const struct GNUNET_HashCode *hash, | |||
2874 | 2874 | ||
2875 | /* Logging of internals */ | 2875 | /* Logging of internals */ |
2876 | sub->file_name_view_log = store_prefix_file_name (&own_identity, "view"); | 2876 | sub->file_name_view_log = store_prefix_file_name (&own_identity, "view"); |
2877 | #ifdef TO_FILE | 2877 | #ifdef TO_FILE |
2878 | sub->file_name_observed_log = store_prefix_file_name (&own_identity, | 2878 | sub->file_name_observed_log = store_prefix_file_name (&own_identity, |
2879 | "observed"); | 2879 | "observed"); |
2880 | sub->file_name_push_recv = store_prefix_file_name (&own_identity, | 2880 | sub->file_name_push_recv = store_prefix_file_name (&own_identity, |
@@ -2884,7 +2884,7 @@ new_sub (const struct GNUNET_HashCode *hash, | |||
2884 | sub->num_observed_peers = 0; | 2884 | sub->num_observed_peers = 0; |
2885 | sub->observed_unique_peers = GNUNET_CONTAINER_multipeermap_create (1, | 2885 | sub->observed_unique_peers = GNUNET_CONTAINER_multipeermap_create (1, |
2886 | GNUNET_NO); | 2886 | GNUNET_NO); |
2887 | #endif /* TO_FILE */ | 2887 | #endif /* TO_FILE */ |
2888 | 2888 | ||
2889 | /* Set up data structures for gossip */ | 2889 | /* Set up data structures for gossip */ |
2890 | sub->push_map = CustomPeerMap_create (4); | 2890 | sub->push_map = CustomPeerMap_create (4); |