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

PR: from dyn to master #6

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

PR: from dyn to master #6

wants to merge 19 commits into from

Conversation

yuezato
Copy link
Member

@yuezato yuezato commented Dec 4, 2018

動的リンクベースでopenstack/liberasurecodeを用いるためのPR

@@ -295,7 +294,9 @@ impl ErasureCoder {
}
impl Drop for ErasureCoder {
fn drop(&mut self) {
let _ = c_api::instance_destroy(self.desc);
with_global_lock(|| {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a short description which describes why we must use a global lock here?

@@ -29,6 +29,16 @@ For example, on Ubuntu, you can install those by executing the following command
$ sudo apt install gcc git make automake autoconf libtool
```

Before do `cargo build`, please set the two environment variables `FRUGALOS_DIR` and `LD_LIBRARY_PATH`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

依存関係的には、liberasurecodeはfrugalosに依存しないより汎用的なライブラリとしても使えるものだと思うので、個人的には FRUGALOS_DIR もそれを反映した名前(e.g., LIBERASURECODE_DIR)の方が好みです。
ただ、今回の修正でlibfrugalos内の他の個所にも結構frugalosという用語が出てくるようになって、それらを全て置き換えるのも手間だと思うので、別にこのままでも大丈夫です。

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

Successfully merging this pull request may close these issues.

4 participants