[DGD] error recovery with atomic functions

bart at wotf.org bart at wotf.org
Fri Jun 26 01:26:35 CEST 2015


Looks like this passed your careful consideration :-)

Thanks.

On another note, been working a bit again on getting a 'stand-alone' version
of my I3 router code (or better put, trying to remove all dependencies it
currently has on the WOTF mudlib). I intended to start with a few bits and
pieces from Gurbalib's kernel, and soon got caught up in a rather big detour...

Needed something for storing user and group information, and also for storing
information for the I3 router code.. So I made a simple key/value database,
and then realized I could make it 'a bit' more advanced.

Jun 26 00:29:41 ** DGD 1.5.2 running TiKLiB v0.01.    
Jun 26 00:29:41 ** Initializing...                    
Jun 26 00:29:41 ** Starting init_d                    
Jun 26 00:29:41 ** INIT: loading event manager        
Jun 26 00:29:41 ** INIT: loading database manager     
Jun 26 00:29:41 ** INIT: loading user subsystem       
Jun 26 00:29:42 ** INIT: loading group subsystem      
Jun 26 00:29:42 ** INIT: loading userland security subsystem
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_cmds 
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_command
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_connection
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_getopt    
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_mdb       
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_port      
Jun 26 00:29:42 ** INIT: preloading /sys/lib/modules/m_serialize 
Jun 26 00:29:42 ** INIT: preloading /sys/lib/bigmap              
Jun 26 00:29:42 ** INIT: preloading /users/test/lib/test         
Jun 26 00:29:42 ** INIT: preloading /users/test2/lib/test        
Jun 26 00:29:42 ** INIT: loading /sys/obj/mdb/lwo/dbproxy        
Jun 26 00:29:42 ** INIT: loading /sys/obj/mdb/lwo/resultset      
Jun 26 00:29:42 ** INIT: loading /sys/obj/mdb/lwo/keyset         
Jun 26 00:29:42 ** INIT: loading /sys/obj/rdbm/table             
Jun 26 00:29:42 ** INIT: loading /sys/obj/rdbm/view              
Jun 26 00:29:42 ** INIT: loading /sys/obj/rdbm/database          
Jun 26 00:29:42 ** INIT: loading /sys/obj/rdbm/resultset         
Jun 26 00:29:42 ** INIT: loading /sys/daemons/rdbm_d             
Jun 26 00:29:42 ** INIT: loading /kernel/obj/net/connection      
Jun 26 00:29:42 ** INIT: loading /kernel/obj/net/port            
Jun 26 00:29:42 ** INIT: loading /sys/daemons/telnet_d
Jun 26 00:29:42 ** Privileges for user test: :test:netadm:operators:wheel:
Jun 26 00:29:42 ** Init done (used 347243 ticks)
Jun 26 00:29:42 ** RDBM: CREATE DATABASE master
Jun 26 00:29:42 ** RDBM: define_table master.databases (*/system) : ([
"name":3, "options":6 ])
Jun 26 00:29:42 ** RDBM: creating table master.databases
Jun 26 00:29:42 ** RDBM: define_table master.tables (*/system) : ([ "db":3,
"def":6, "key":3, "name":3, "rpriv":3, "wpriv":3 ])
Jun 26 00:29:42 ** RDBM: creating table master.tables
Jun 26 00:29:42 ** RDBM: CREATE DATABASE worddb
Jun 26 00:29:42 ** RDBM: define_table worddb.words (*/system) : ([
"explanation":3, "type":3, "word":3 ])
Jun 26 00:29:42 ** RDBM: creating table worddb.words
Jun 26 00:29:42 ** RDBM: import worddb.words from /etc/wordlist
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 1 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 2 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 3 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 4 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 5 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 6 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 7 of 8
Jun 26 00:29:42 ** RDBM: loading worddb.words chunk 8 of 8
Jun 26 00:29:42 ** RDBM: Import complete
Jun 26 00:29:42 ** RDBM: SELECT (word, explanation) FROM words WHERE word =
"drink"
Jun 26 00:29:42 ** RDBM: calling select in /sys/obj/mdb/lwo/dbproxy#-1
(worddb.words.word = "drink")
Jun 26 00:29:42 ** KEYSET: set_keys( 3844, 2160, ({ "drink.verb" }))
Jun 26 00:29:42 ** KEYSET: set_keys( 13360, 2106, ({ "drink.noun" }))
Jun 26 00:29:42 ** RDBM: ([ 3844:([ 2160:([ "drink.verb":([
"explanation":"have fun", "word":"drink" ]) ]) ]), 13360:([ 2106:([
"drink.noun":([ "explanation":"stuff to drink", "word":"drink" ]) ]) ]) ])

Not overly useful, but lots of fun to play with and explore how far I can take
this.

Bart.

On Thu, 25 Jun 2015 14:57:20 +0200, bart wrote
> On Thu, 25 Jun 2015 10:47:56 +0200, Felix A. Croes wrote

<snip>

> > That is a bug, actually.  When I added the new INSTANCEOF 
> > instruction, I failed to copy this functionality from the old kfun.  
> > Pull requests which address this issue will be carefully considered. 
> > :)
> 
> Not a pull request, but a stab at this anyway. Quick test suggests 
> this works, but it has been a while since I last meddled with such 
> things :-)
> 
> Bart.

<snip>

--
http://www.flickr.com/photos/mrobjective/
http://www.om-d.org/




More information about the DGD mailing list