comparison src/server.c @ 167:7ba337dafb2c noffle

[svn] * TODO,content.c,lock.c,server.c,server.h: Remove bug notice re: need to do a Cont_write on Lock_closeDatabases in case of unwritten content changes when releasing the lock. Update content to keep dirty flag and avoid unnecessary writes, and lock to signal server to re-read its group content info after the lock is released. Do NOT write content info on Lock_close if dirty, as the placeholder article in unsubscribed groups is currently done by adding it to the content when joining the group and deliberately not saving it unless another content modification takes place and thus causes the content to be saved.
author bears
date Sun, 25 Feb 2001 23:29:50 +0000
parents 23a53c92d4d7
children 19e3aa717196
comparison
equal deleted inserted replaced
166:1d92abe57427 167:7ba337dafb2c
1 /* 1 /*
2 server.c 2 server.c
3 3
4 $Id: server.c 244 2000-12-29 15:05:10Z enz $ 4 $Id: server.c 260 2001-02-25 23:29:50Z bears $
5 */ 5 */
6 6
7 #if HAVE_CONFIG_H 7 #if HAVE_CONFIG_H
8 #include <config.h> 8 #include <config.h>
9 #endif 9 #endif
1391 server.running = FALSE; 1391 server.running = FALSE;
1392 Lock_closeDatabases(); 1392 Lock_closeDatabases();
1393 } 1393 }
1394 1394
1395 void 1395 void
1396 Server_flushCache( void )
1397 {
1398 server.groupReady = FALSE;
1399 }
1400
1401 void
1396 Server_run( void ) 1402 Server_run( void )
1397 { 1403 {
1398 Bool done; 1404 Bool done;
1399 Str line; 1405 Str line;
1400 1406