Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How cassandra is able to perform snapshot by hard link?

Reading Cassandra documentation here, they say if JNA (Java Native Access) is enabled snapshots are performed by hard link.

I can't understand how a hard link can hold a point in time version of a given file since it's the file itself at inode level (at least the way I understand hard links, I may be mistaken).

like image 381
Tiago Lopo Avatar asked Aug 20 '14 17:08

Tiago Lopo


1 Answers

SSTable files are immutable so any hard reference will be the only state the file was ever in.

like image 152
RussS Avatar answered Oct 02 '22 05:10

RussS