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

Transaction support #5

Open
Baughn opened this issue Sep 14, 2016 · 5 comments
Open

Transaction support #5

Baughn opened this issue Sep 14, 2016 · 5 comments

Comments

@Baughn
Copy link

Baughn commented Sep 14, 2016

With the supplied 'qdb' wrapper, if you do multiple simultaneous invocations of quinedb (as, say, to increase performance on a multicore system), there's a chance of clashing writes to qdb.out/err, which will break the executable entirely.

To get around this you should lock the output files before quinedb is invoked.

Also it would be nice to have it support transactions.

@gfredericks
Copy link
Owner

Would accept a pull request that does file locking. Maybe in a section at the bottom of the README for advanced users.

@NHOrus
Copy link

NHOrus commented Sep 15, 2016

Suggest using sponge from moreutils to finalize transaction. As it automatically preserves executable bits.

@gfredericks
Copy link
Owner

I'd rather not add dependencies like that. Would make it a pain for installation.

@Baughn
Copy link
Author

Baughn commented Sep 15, 2016

How about if we use nix-shell to automatically install sponge?

@gfredericks
Copy link
Owner

no.

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

No branches or pull requests

3 participants