[OpenAFS-devel] Ubik initialization

Tommie Gannert d00-tga@d.kth.se
Wed, 29 Nov 2006 14:21:20 +0100


Tommie Gannert wrote:
> The test-program looks like
> 
>   ubik_ParserServerList(argc, argv, &myHost, otherHosts)
>   ubik_ServerInit(myHost, htons(1032), otherHosts, "/tmp/testdb", &db)
>   rx_StartServer(0)
>   sleep(10)
>   ubik_BeginTrans(db, UBIK_WRITETRANS, &trans)
>   ubik_Truncate(trans, 3 * 4096)
>   ubik_EndTrans(trans);
> 

Sorry, I forgot to test IOMGR_Sleep(10), and that seems to do the trick.
I thought Ubik used pthreads.


/Tommie Gannert