monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] Server-initiated sync (or push or pull)


From: Timothy Brownawell
Subject: [Monotone-devel] Server-initiated sync (or push or pull)
Date: Fri, 22 Jun 2007 06:33:04 -0500

There's a new branch net.venge.monotone.server-initiated-sync which adds
a new lua function that can be called from hooks.

server_request_sync(what, address, include, exclude)

"what" is either "sync", "pull", or "push" (or anything else, which is
currently treated as "sync"). This adds a request to a queue that is
read by the server event loop, and tells the server to start a
connection to some other server.

If you call this from the netsync notification hooks (probably the best
place to call it from), note that it is very easy to start an infinite
loop, unless you make sure it doesn't trigger on connections to/from
whatever other servers it starts connections to.


-- 
Timothy

Free (experimental) public monotone hosting: http://mtn-host.prjek.net





reply via email to

[Prev in Thread] Current Thread [Next in Thread]