Skip to content

Conversation

@yuezato
Copy link
Member

@yuezato yuezato commented Dec 4, 2018

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

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?

$ 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.

5 participants