Łukasz Magiera
9aab19ea35
object-patch: Support linking to non-dagpb objects
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-06 20:59:34 +01:00
Whyrusleeping
bbdbd0ac6f
Merge pull request #4398 from ipfs/fix/hamt-bug
...
fix hamt delete issue
2017-12-05 20:53:51 +01:00
Whyrusleeping
715bd16e0e
Merge pull request #3801 from hoenirvili/refactor-code
...
Safe check rlimit syscall and refactoring
2017-12-05 18:34:51 +01:00
hoenirvili
f16ada6159
This patch contains more safe checking in syscall rlimit and unit tests
...
The soft limit is the value that the kernel enforces for the corresponding resource
The hard limit acts as a ceiling for the soft limit
an unprivileged process may only set its soft limit to a value
in the range from 0 up to the hard limit.
So in order to make the change in fds count without any error we should
inform the user to make the process have CAP_SYS_RESOURCE capability
in order to set the hard limit.
License: MIT
Signed-off-by: hoenirvili <hoenirvili@gmail.com>
2017-12-04 17:27:00 -05:00
Whyrusleeping
a234c56bec
Merge pull request #3983 from ivan386/patch-3
...
check strong and weak ETag validator
2017-12-04 20:36:43 +01:00
Whyrusleeping
e8cad12465
Merge pull request #4445 from ipfs/fix/4427
...
build for all supported platforms when testing
2017-12-04 20:12:55 +01:00
Whyrusleeping
6104cfdf7d
Merge pull request #4449 from hacdias/patch-1
...
Update WebUI version
2017-12-04 20:03:59 +01:00
Jeromy
76e4dcf757
appease codeclimate
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 10:59:57 -08:00
Whyrusleeping
c7eddabd43
Merge pull request #4451 from ipfs/fix/better-pinning
...
Pinning fixes
2017-12-04 18:51:07 +01:00
Whyrusleeping
bee2ba386b
Merge pull request #4454 from ipfs/fix/get-error-4452
...
Fix error handling in commands add and get
2017-12-04 18:44:48 +01:00
Jeromy
1a75c40f5b
require go1.9
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-12-04 09:33:20 -08:00
keks
6f82f08611
fix error handling in core/commands/{add,get}.go
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-12-04 14:27:34 +01:00
Steven Allen
9a335cee13
fewer allocations on unpin
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:05:05 -08:00
Steven Allen
498ee0dc0b
resolve and pin in one step
...
instead of resolving all the pins first and then pinning, pin after resolving
each pin.
This:
1. Avoids storing all the nodes in memory.
2. Avoids not showing pin progress.
fixes #4122
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:03:04 -08:00
Steven Allen
924b2a0a34
don't add nodes to DAG twice.
...
Now that we add nodes to the DAG when pinning, don't bother adding them twice.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:09 -08:00
Steven Allen
953b610470
add node to dagserv under lock
...
Otherwise, we could run a GC between adding and pinning.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:09 -08:00
Steven Allen
8e780d2304
don't create a new context per pin
...
This came from an old commit that used a TODO context. Now that we have a real
context, use that.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-03 19:02:08 -08:00
Whyrusleeping
39f0f5f796
Merge pull request #4443 from ipfs/fix/4408
...
make repo size test pass deterministically
2017-12-03 18:05:26 +01:00
Whyrusleeping
2ee18fad01
Merge pull request #4399 from ipfs/gx/datastore-1.4.0
...
gx: Update go-datastore to 1.4.0
2017-12-03 05:20:08 +01:00
Steven Allen
4fe1bcbffc
gx import missing go-libp2p-blankhost dep
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-02 14:55:27 -08:00
Łukasz Magiera
6401a9191e
gx: Update go-datastore to 1.4.0
...
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2017-12-02 14:55:26 -08:00
Henrique Dias
4df6385f55
Add trailing comma
...
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:05:55 +00:00
Henrique Dias
351185382d
Update WebUI version
...
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
2017-12-02 12:03:57 +00:00
Steven Allen
ba680b10da
make sure the repo size is greater than the size of the symlink
...
Before, we'd check to make sure the repo, when checked through a symlink, is at
least as large as the repo *before* we checked it through the symlink. However,
this assumes that the repo can't shrink.
Really, this test exists to ensure we measure the repo size itself instead of
the size of the symlink; this commit changes the test to reflect this.
This test fails when 54d7e03303 is reverted.
fixes #4408
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-12-01 09:56:03 -08:00
Whyrusleeping
bc7124226c
Merge pull request #4440 from ipfs/fix/ipns-repub
...
Fix various IPNS issues
2017-12-01 17:30:06 +01:00
Whyrusleeping
abe8ced8c7
Merge pull request #4433 from ipfs/fix/coreunix-add/ctx
...
AddWithContext wraps custom context
2017-12-01 17:26:21 +01:00
Steven Allen
6917d2f08f
build for all supported platforms when testing
...
fixes #4427
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-30 22:05:06 -08:00
Whyrusleeping
66bde41384
Merge pull request #4047 from vyzo/ipns-pubsub
...
namesys/pubsub: pubsub Publisher and Resolver
2017-11-30 13:41:38 +01:00
Whyrusleeping
d4add99ada
Merge pull request #4437 from ipfs/fix/add-abort-panic
...
Fix/add abort panic
2017-11-30 13:40:46 +01:00
Steven Allen
228c5552ab
always obey the IPNS rebroadcast interval if it's smaller
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:54:06 -08:00
Steven Allen
fd2d63c5ba
document ipns republisher variables
...
(makes code climate happy)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:46:34 -08:00
Steven Allen
40b3a72498
retry publishing IPNS records every 5 minutes on failure
...
This way, if we *happen* to be offline while attempting a publish, we don't wait
the full interval.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:29:25 -08:00
Steven Allen
d8de88c4b6
publish ipns records on start
...
(after a delay of 1 minute)
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:24:27 -08:00
Steven Allen
febf21b0c7
fix republish interval documentation
...
We republish every 4 hours, not 12.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-29 15:15:58 -08:00
keks
a3a3179384
fix panic on ipfs add and Ctrl+C
...
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-29 12:32:51 +01:00
Whyrusleeping
a81025f891
Merge pull request #4434 from ipfs/kevina/test-symlink-test-fail
...
Increase verboseness of t0088-repo-stat-symlink.sh test.
2017-11-28 11:22:35 -08:00
Kevin Atkinson
d2696ed498
Increase verboseness of t0088-repo-stat-symlink.sh test.
...
Top help track down random test failures.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2017-11-28 13:45:27 -05:00
ForrestWeston
96e1315cff
AddWithContext wraps custom context
...
AddWithContext should use the custom context when calling
NewAdder
License: MIT
Signed-off-by: ForrestWeston <forrest@protocol.ai>
2017-11-28 10:00:47 -08:00
Whyrusleeping
96b87238fe
Merge pull request #4425 from ipfs/fix/windows-build-deps
...
fix builds on windows
2017-11-25 10:58:29 -08:00
Jeromy
971bb01e1b
fix builds on windows
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-24 10:37:02 -08:00
Whyrusleeping
b7824ba3ee
Merge pull request #4415 from ipfs/cleanup/dead-cmds-code
...
Delete some now unused commands lib code
2017-11-22 15:09:55 -08:00
Whyrusleeping
9032848e83
Merge pull request #4419 from ipfs/fix/update-cmds
...
update go-ipfs-cmds to 0.4.11
2017-11-22 13:46:52 -08:00
keks
8e5fbe9aa1
update go-ipfs-cmds to 0.4.11
...
to include @frist's uuid logging
License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
2017-11-22 19:06:00 +01:00
Whyrusleeping
e1f433e3a8
Merge pull request #4402 from keks/fix/pubsub-flush
...
core/commands/pubsub.go: flush output before iterating over received messages
2017-11-21 21:30:15 -08:00
Whyrusleeping
1f2247c6bd
Merge pull request #4413 from ipfs/fix/cmd-goroutine-leaks
...
Fix some goroutine leaks in commands
2017-11-21 21:26:44 -08:00
Jeromy
68bb106980
Delete some now unused commands lib code
...
License: MIT
Signed-off-by: Jeromy <jeromyj@gmail.com>
2017-11-21 20:40:24 -08:00
Steven Allen
2997f48a67
fix goroutine leaks in repo commands
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 16:17:27 -08:00
Steven Allen
016b005333
fix goroutine leaks in DHT commands
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2017-11-21 15:39:37 -08:00
Whyrusleeping
e0f38fa33b
Merge pull request #4406 from ipfs/fix/4405
...
Fix two race conditions (and possibly go routine leaks) in commands
2017-11-21 15:23:39 -08:00
Whyrusleeping
33c82070f2
Merge pull request #4407 from ipfs/fix/4394
...
fix deadlock in bitswap sessions
2017-11-21 15:21:25 -08:00