projects
/
bluesky.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04f3087
)
Allow S3 bucket used for BlueSky storage to be specified.
author
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 15 Oct 2010 18:01:45 +0000
(11:01 -0700)
committer
Michael Vrable
<mvrable@cs.ucsd.edu>
Fri, 15 Oct 2010 18:01:45 +0000
(11:01 -0700)
bluesky/store-s3.c
patch
|
blob
|
history
diff --git
a/bluesky/store-s3.c
b/bluesky/store-s3.c
index
d5f06e8
..
7f23434
100644
(file)
--- a/
bluesky/store-s3.c
+++ b/
bluesky/store-s3.c
@@
-173,7
+173,10
@@
static gpointer s3store_new(const gchar *path)
S3Store *store = g_new(S3Store, 1);
store->thread_pool = g_thread_pool_new(s3store_task, store, -1, FALSE,
NULL);
- store->bucket.bucketName = "mvrable-bluesky";
+ if (path == NULL || strlen(path) == 0)
+ store->bucket.bucketName = "mvrable-bluesky";
+ else
+ store->bucket.bucketName = g_strdup(path);
store->bucket.protocol = S3ProtocolHTTP;
store->bucket.uriStyle = S3UriStylePath;
store->bucket.accessKeyId = getenv("AWS_ACCESS_KEY_ID");