View Single Post
Old 09-24-2007, 12:12 AM  
neoxed
Too much time...
 
Join Date: May 2003
Posts: 1,326
Default

Well it's been a while since you've heard from...it's because I've been busy coding. I implemented and tested different designs for syncing with the database and I've finally come up with one I like.

I've created a "changes" table that will be used for sites to see which users/groups have been created, renamed or deleted. The changes table is processed incrementally on configurable time intervals. During start-up a full synchronization is done since the module has no idea how long ioFTPD was offline.

The group synchronization is done, now I just need to do some copy and pasting to finish user synchronization (basically the same thing, just different structures).

Code:
E:\ioFTPD\modules>wc -l include\* source\*
     31 include\array.h
    128 include\backends.h
    161 include\base.h
     39 include\condvar.h
     92 include\database.h
     54 include\debug.h
     36 include\idlist.h
     39 include\namelist.h
    142 include\pool.h
    119 include\proctable.h
    585 include\queue.h
    189 source\array.c
    157 source\condvar.c
    956 source\database.c
    410 source\debug.c
     54 source\dllentry.c
    524 source\group.c
    691 source\groupdb.c
    612 source\groupdbsync.c
    292 source\groupfile.c
    103 source\idlist.c
    356 source\namelist.c
    696 source\pool.c
     99 source\proctable.c
    527 source\user.c
   1940 source\userdb.c
     30 source\userdbsync.c
    293 source\userfile.c
   9355 total

Last edited by neoxed; 09-24-2007 at 12:30 AM.
neoxed is offline   Reply With Quote