diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/namestore/gnunet-service-namestore.c | 5 | ||||
-rw-r--r-- | src/namestore/namestore_api_monitor.c | 3 | ||||
-rw-r--r-- | src/namestore/plugin_namestore_sqlite.c | 14 |
3 files changed, 7 insertions, 15 deletions
diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index 1b9e01e18..cdd52cc42 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c | |||
@@ -624,7 +624,6 @@ send_lookup_response (struct NamestoreClient *nc, | |||
624 | char *rd_ser; | 624 | char *rd_ser; |
625 | 625 | ||
626 | nick = get_nick_record (zone_key); | 626 | nick = get_nick_record (zone_key); |
627 | |||
628 | GNUNET_assert (-1 != | 627 | GNUNET_assert (-1 != |
629 | GNUNET_GNSRECORD_records_get_size (rd_count, | 628 | GNUNET_GNSRECORD_records_get_size (rd_count, |
630 | rd)); | 629 | rd)); |
@@ -925,7 +924,7 @@ continue_store_activity (struct StoreActivity *sa) | |||
925 | sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) ) | 924 | sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) ) |
926 | { | 925 | { |
927 | sa->zm_pos = zm->next; /* not interesting to this monitor */ | 926 | sa->zm_pos = zm->next; /* not interesting to this monitor */ |
928 | continue; // -- fails tests, but why not here? | 927 | continue; |
929 | } | 928 | } |
930 | if (zm->limit == zm->iteration_cnt) | 929 | if (zm->limit == zm->iteration_cnt) |
931 | { | 930 | { |
@@ -1771,7 +1770,7 @@ run_zone_iteration_round (struct ZoneIteration *zi, | |||
1771 | "Returned %llu results, more results available\n", | 1770 | "Returned %llu results, more results available\n", |
1772 | (unsigned long long) limit); | 1771 | (unsigned long long) limit); |
1773 | return; /* more results later after we get the | 1772 | return; /* more results later after we get the |
1774 | #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT message */ | 1773 | #GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT message */ |
1775 | } | 1774 | } |
1776 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1775 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1777 | "Completed iteration after %llu/%llu results\n", | 1776 | "Completed iteration after %llu/%llu results\n", |
diff --git a/src/namestore/namestore_api_monitor.c b/src/namestore/namestore_api_monitor.c index 457da0b90..b26389718 100644 --- a/src/namestore/namestore_api_monitor.c +++ b/src/namestore/namestore_api_monitor.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 | */ |
@@ -296,7 +296,6 @@ reconnect (struct GNUNET_NAMESTORE_ZoneMonitor *zm) | |||
296 | } | 296 | } |
297 | 297 | ||
298 | 298 | ||
299 | |||
300 | /** | 299 | /** |
301 | * Begin monitoring a zone for changes. If @a iterate_first is set, | 300 | * Begin monitoring a zone for changes. If @a iterate_first is set, |
302 | * we Will first call the @a monitor function on all existing records | 301 | * we Will first call the @a monitor function on all existing records |
diff --git a/src/namestore/plugin_namestore_sqlite.c b/src/namestore/plugin_namestore_sqlite.c index 2ffc12f92..23af3960d 100644 --- a/src/namestore/plugin_namestore_sqlite.c +++ b/src/namestore/plugin_namestore_sqlite.c | |||
@@ -501,16 +501,10 @@ get_records_and_call_iterator (struct Plugin *plugin, | |||
501 | GNUNET_SQ_result_spec_end | 501 | GNUNET_SQ_result_spec_end |
502 | }; | 502 | }; |
503 | 503 | ||
504 | if (NULL == zone_key) | 504 | ret = GNUNET_SQ_extract_result (stmt, |
505 | { | 505 | (NULL == zone_key) |
506 | ret = GNUNET_SQ_extract_result (stmt, | 506 | ? rsx |
507 | rsx); | 507 | : rs); |
508 | } | ||
509 | else | ||
510 | { | ||
511 | ret = GNUNET_SQ_extract_result (stmt, | ||
512 | rs); | ||
513 | } | ||
514 | if ( (GNUNET_OK != ret) || | 508 | if ( (GNUNET_OK != ret) || |
515 | (record_count > 64 * 1024) ) | 509 | (record_count > 64 * 1024) ) |
516 | { | 510 | { |