Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement sphia_status #8

Open
jwerle opened this issue Jan 9, 2014 · 6 comments
Open

Implement sphia_status #8

jwerle opened this issue Jan 9, 2014 · 6 comments
Assignees

Comments

@jwerle
Copy link
Member

jwerle commented Jan 9, 2014

No description provided.

@ghost ghost assigned jwerle Jan 9, 2014
@stephenmathieson
Copy link
Member

As we can't reliably use sp_recover, how should this be handled?

@stephenmathieson
Copy link
Member

If we can create a cursor, is the db OK?

int
sphia_status (sphia_t *self) {
  void *c = sp_cursor(self->db);
  if (c) {
    sp_destroy(c);
    return 0;
  }
  return -1;
}

@jwerle
Copy link
Member Author

jwerle commented Jan 10, 2014

I've been looking into https://github.com/pmwkaa/sophia/blob/master/test/recover.c to see what type of things I can discern about statuses. I also have been looking there to see exactly what types of files should be "purged"

@stephenmathieson stephenmathieson mentioned this issue Jan 13, 2014
14 tasks
@jwerle
Copy link
Member Author

jwerle commented Jan 14, 2014

I think for now we should keep this out of the first release. You'r right, someone can just rm -rf the directory. What do you think? @stephenmathieson

@stephenmathieson
Copy link
Member

Can we use sp_stat for this?

@jwerle
Copy link
Member Author

jwerle commented Jun 1, 2014

@stephenmathieson I think we can

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants