--------------------- PatchSet 11194 Date: 2007/01/24 22:56:41 Author: wessels Branch: HEAD Tag: (none) Log: Adding some debugging around msgsnd() and msgrcv(), #ifdef'd out by default These low-level debugging statements were useful in tracking down some bugs, but they are #ifdef'd out by default. Members: src/fs/diskd/store_dir_diskd.c:1.88->1.89 src/fs/diskd/store_io_diskd.c:1.36->1.37 Index: squid/src/fs/diskd/store_dir_diskd.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/diskd/store_dir_diskd.c,v retrieving revision 1.88 retrieving revision 1.89 diff -u -r1.88 -r1.89 --- squid/src/fs/diskd/store_dir_diskd.c 21 Jan 2007 12:54:05 -0000 1.88 +++ squid/src/fs/diskd/store_dir_diskd.c 24 Jan 2007 22:56:41 -0000 1.89 @@ -1,6 +1,6 @@ /* - * $Id: store_dir_diskd.c,v 1.88 2007/01/21 12:54:05 adrian Exp $ + * $Id: store_dir_diskd.c,v 1.89 2007/01/24 22:56:41 wessels Exp $ * * DEBUG: section 47 Store Directory Routines * AUTHOR: Duane Wessels @@ -532,6 +532,17 @@ x); break; } +#if 0 + debug(47, 3) ("msgrcv %ld %d %d %p %d %" PRINTF_OFF_T " %d %d\n", + M.mtype, + M.id, + M.seq_no, + M.callback_data, + M.size, + M.offset, + M.status, + M.shm_offset); +#endif diskd_stats.recv_count++; diskdinfo->away--; storeDiskdHandle(&M); Index: squid/src/fs/diskd/store_io_diskd.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/diskd/store_io_diskd.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- squid/src/fs/diskd/store_io_diskd.c 24 Jan 2007 22:51:43 -0000 1.36 +++ squid/src/fs/diskd/store_io_diskd.c 24 Jan 2007 22:56:41 -0000 1.37 @@ -1,6 +1,6 @@ /* - * $Id: store_io_diskd.c,v 1.36 2007/01/24 22:51:43 wessels Exp $ + * $Id: store_io_diskd.c,v 1.37 2007/01/24 22:56:41 wessels Exp $ * * DEBUG: section 79 Squid-side DISKD I/O functions. * AUTHOR: Duane Wessels @@ -500,6 +500,17 @@ cbdataLock(M.callback_data); if (M.seq_no < last_seq_no) debug(79, 1) ("WARNING: sequencing out of order\n"); +#if 0 + debug(79, 3) ("msgsnd %ld %d %d %p %d %" PRINTF_OFF_T " %d %d\n", + M.mtype, + M.id, + M.seq_no, + M.callback_data, + M.size, + M.offset, + M.status, + M.shm_offset); +#endif x = msgsnd(diskdinfo->smsgid, &M, msg_snd_rcv_sz, IPC_NOWAIT); last_seq_no = M.seq_no; if (0 == x) {