Changeset eb03582069696d88174dc3cedbf7117636aca2ef

Show
Ignore:
Timestamp:
03/02/08 03:14:55 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1204427695 +0000
git-parent:

[69dd1d17b4eb0284f334ceaa4dbf7d617093d24b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1204427695 +0000
Message:

need to put the jlog_id in the header so the client knows what to checkpoint

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_jlog_listener.c

    rbd54e8d reb03582  
    5252    return -1; 
    5353  while(jcl->count > 0) { 
    54     struct { u_int32_t n_sec, n_usec, n_len; } payload; 
     54    struct { jlog_id chkpt; u_int32_t n_sec, n_usec, n_len; } payload; 
    5555    if(jlog_ctx_read_message(jcl->jlog, &jcl->start, &msg) == -1) 
    5656      return -1; 
    5757 
    5858    /* Here we actually push the message */ 
     59    payload.chkpt.log = htonl(jcl->start.log); 
     60    payload.chkpt.marker = htonl(jcl->start.marker); 
    5961    payload.n_sec  = htonl(msg.header->tv_sec); 
    6062    payload.n_usec = htonl(msg.header->tv_usec);