jeffpc / nx01

testing
MIT License
1 stars 0 forks source link

objstore's obj & objver should actually act as a cache #82

Open jeffpc opened 8 years ago

jeffpc commented 8 years ago

The idea is that the generic obj and objver structures cache the backend information. Currently, the only way for an obj/objver to go away is for the object to be unlinked out of existence. (Obviously, if an object version is open, it and the obj structure itself must not go away.) This has several implications:

  1. an obj can go away at "any" time (taking all objvers with it)
  2. an objver can go away at "any" time (leaving other objvers and the obj itself alone)
  3. objvers need their own reference count