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

The docs for tiledb_workspace_ls_c are missing the parent argument field #32

Closed
jakebolewski opened this issue Jun 16, 2017 · 2 comments
Assignees

Comments

@jakebolewski
Copy link
Contributor

No description provided.

@jakebolewski
Copy link
Contributor Author

jakebolewski commented Jun 16, 2017

Hmm, the relevant example in the examples/ directory does not line up with the header / C-api definition. So this looks like more of a bug.

The following is a simple test-case that segfaults. I'm having no luck getting the debug build to work well with lldb which may be a different issue.

#include "tiledb.h"
#include "stdlib.h"

int main() { 

  TileDB_Config* cfg = (TileDB_Config*) malloc(sizeof(TileDB_Config)); 
  memset(cfg, 0, sizeof(TileDB_Config));

  TileDB_CTX* ctx;
  tiledb_ctx_init(&ctx, cfg);
  
  tiledb_workspace_create(ctx, "/var/folders/yn/_1781_c548z33m_qsc1q0q1m0000gn/T/tmpkpk8t4lu/test_workspace1");
  tiledb_workspace_create(ctx, "/var/folders/yn/_1781_c548z33m_qsc1q0q1m0000gn/T/tmpkpk8t4lu/test_workspace2");
  
  int nws = 0;
  tiledb_ls_workspaces_c(ctx, &nws);

  printf("the number of workspaces is %d\n", nws);
}

@stavrospapadopoulos
Copy link
Member

This is resolved (~./tiledb was corrupted). Also, regarding the docs, we are planning to remove the master catalog and add a C API that receives a parent directory as argument (creating new issues on these).

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