You bet. Take a look at CFS.snapshot(). You basically supply a name and a hard link is created.
Gary. On Wed, Apr 28, 2010 at 06:49, Ran Tavory <ran...@gmail.com> wrote: > Thanks Gary, can you send a code pointer how snapshot is done? > > On Wed, Apr 28, 2010 at 2:46 PM, Gary Dusbabek <gdusba...@gmail.com> wrote: >> >> I think it's in the right direction. You've handled the memtable, >> sstables and commit log. Other than what's listed in the todos, I >> can't think of anything else. >> >> As for the files, it's probably best to snapshot before truncating. >> That's the approach I was encouraged to take for the DROP CF >> operation. >> >> Gary. >> >> On Wed, Apr 28, 2010 at 03:59, Ran Tavory <ran...@gmail.com> wrote: >> > Finally I found the time to start this work... >> > It's half baked, but I listed all the missing parts so I'll continue the >> > work if the patch is good so far. No need to apply the patch, just have >> > look >> > and lmk if I'm at the right direction >> > >> > https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch >> > >> > >> > <https://issues.apache.org/jira/secure/attachment/12443055/CASSANDRA-531.patch> >> > Thanks >> > >> > On Thu, Mar 25, 2010 at 9:32 PM, Jonathan Ellis <jbel...@gmail.com> >> > wrote: >> > >> >> Commented on the Jira issue. >> >> >> >> Curious how badly out of date that patch is now. :) >> >> > >