[Pkg-wmaker-commits] [wmcoincoin] 79/87: Do not bother parsing the whole line if the post is already known

Doug Torrance dtorrance-guest at moszumanska.debian.org
Fri Aug 28 17:27:45 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmcoincoin.

commit b721287f87fd54f92b7b0dbb528ae9d2d98fd56d
Author: SeeSchloss <mvalleton at noparking.net>
Date:   Thu Apr 9 14:26:42 2015 +0200

    Do not bother parsing the whole line if the post is already known
---
 src/board.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/board.c b/src/board.c
index acf8655..4bef46a 100644
--- a/src/board.c
+++ b/src/board.c
@@ -2026,6 +2026,10 @@ regular_board_update_tsv(Board *board, HttpRequest *r) {
       offset++;
     }
 
+    if (board_find_id(board, id)) {
+      continue;
+    }
+
     length = strcspn(s + offset, "\t");
     if (length) {
       unsigned l = MIN((sizeof stimestamp)-1, length);
@@ -2078,10 +2082,6 @@ regular_board_update_tsv(Board *board, HttpRequest *r) {
       fprintf(stderr, "timestamp POURRI: '%s'\n", stimestamp);
     }
 
-    if (board_find_id(board, id)) {
-      continue;
-    }
-
     if (!errmsg) { /* encore une victoire de xmlcoincoin */
       flag_updating_board++;
       if (!board_log_msg(board, ua, login, stimestamp,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmcoincoin.git



More information about the Pkg-wmaker-commits mailing list