Fossil

Check-in [71a50a1d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not add extra \n characters to the sync protocol.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | unversioned-files
Files: files | file ages | folders
SHA1:71a50a1dd7de3fb9370b9dc9b55c663405cc6a43
User & Date: drh 2016-08-09 19:41:17
Context
2016-08-16
16:25
Merge recent trunk enhancements. check-in: f6d4a2bf user: drh tags: unversioned-files
2016-08-09
19:41
Do not add extra \n characters to the sync protocol. check-in: 71a50a1d user: drh tags: unversioned-files
18:59
More fixes to the unversioned file sync protocol. check-in: 48b9bf35 user: drh tags: unversioned-files
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/xfer.c.

676
677
678
679
680
681
682

683
684
685

686
687
688
689
690
691
692
      blob_init(&content, 0, 0);
      db_column_blob(&q1, 4, &content);
      if( db_column_int(&q1, 2) ){
        blob_uncompress(&content, &content);
      }
      blob_appendf(pXfer->pOut, " %s %d 0\n", zHash, blob_size(&content));
      blob_append(pXfer->pOut, blob_buffer(&content), blob_size(&content));

      if( blob_buffer(pXfer->pOut)[blob_size(pXfer->pOut)-1]!='\n' ){
        blob_append(pXfer->pOut, "\n", 1);
      }

      blob_reset(&content);
    }
  }
  db_finalize(&q1);
}

/*







>



>







676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
      blob_init(&content, 0, 0);
      db_column_blob(&q1, 4, &content);
      if( db_column_int(&q1, 2) ){
        blob_uncompress(&content, &content);
      }
      blob_appendf(pXfer->pOut, " %s %d 0\n", zHash, blob_size(&content));
      blob_append(pXfer->pOut, blob_buffer(&content), blob_size(&content));
#if 0
      if( blob_buffer(pXfer->pOut)[blob_size(pXfer->pOut)-1]!='\n' ){
        blob_append(pXfer->pOut, "\n", 1);
      }
#endif
      blob_reset(&content);
    }
  }
  db_finalize(&q1);
}

/*