1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 07:28:20 +08:00

9241 Commits

Author SHA1 Message Date
080b0e1754 Merge pull request #5509 from ipfs/chores/add-sessions-to-ls-command-4908
Add sessions when fetching MerkleDAG in LS
2018-10-02 16:06:41 -07:00
d8ed9aba7d Merge pull request #5550 from ipfs/fix/coreapi-pin-lock
take the pinlock when updating pins
2018-10-02 16:05:45 -07:00
021fc9fb97 Merge pull request #5385 from ipfs/kevina/cid-cmd
Provide new "cid" sub-command.
2018-10-02 15:54:55 -07:00
bf654ea4f8 defer the pinlock till we actually need it
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-02 15:39:32 -07:00
ab69f0fb4d take the pinlock when updating pins
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-10-02 14:36:12 -07:00
5c8580d6ac Merge pull request #5506 from kjzz/fix/lock
add pin lock in AddallPin function
2018-10-02 11:45:40 -07:00
9569f99e25 Merge pull request #5546 from rob-deutsch/doc/debug
debug-guide.md added memory statistics command
2018-10-02 11:41:17 -07:00
dde11416f6 delete useless hash param in adder
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-02 11:33:12 -07:00
1379ee76f3 add pin lock in AddallPin function
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
2018-10-02 11:33:12 -07:00
49bb9fba2a Merge pull request #5492 from ipfs/feat/unify-resolving
Cleanup instances of manual resolver construction
2018-10-02 10:08:58 -07:00
1ed555b87f Cleanup instances of manual resolver construction
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-10-02 18:35:14 +02:00
0f3cea6a8e debug-guide.md added memory statistics command
License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-10-02 11:57:11 +10:00
54904a7691 Rename streamResults to streamResult.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:32 -04:00
7edc7de288 Eliminate emit closure, so something with errors on call to emit.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:16 -04:00
c0a873c27f Address code review.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:07:01 -04:00
88a7e58b58 Add basic sharness tests.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:53 -04:00
f3ea21c821 Reenable Stdin argument reading.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:36 -04:00
599bb7302e Right align numbers in "ipfs cid bases|codecs|hashes" output.
This also avoid using TabWriter as it doesn't support right aligning a
single column and also because its an overkill for this case.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:20 -04:00
e5622f628a Stream results for "ipfs cid format".
Note reading input from Stdin is broken.  Only the first result is accepted.

License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:06:02 -04:00
98e5999761 Factor out boiler plate code for PostRun in "ipfs filestore ls".
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:47 -04:00
30b861bc5a Remove "prefix" format string. Use WithDefault("%s') for `-f- option.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:29 -04:00
57f96019f7 Provide new "cid" sub-command.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2018-10-01 14:05:27 -04:00
e93aa25e97 Merge pull request #5544 from rob-deutsch/fix/5038
added binary executable files to .dockerignore
2018-10-01 16:31:14 +00:00
ae7fd9a1cb added binary executable files to .dockerignore
fixed #5038

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-29 14:17:39 +10:00
c4398fe3ae Merge pull request #5512 from ipfs/fix/reduce-critical-pinning-session-5376
Fix inability to pin two things at once
2018-09-28 17:56:32 +00:00
7ed1a5361f Repeat recurse/direct pin checks since they could have changed
License: MIT
Signed-off-by: Michael Avila <me@michaelavila.com>
2018-09-27 14:54:25 -07:00
254ac1b118 Fix inability to pin two things at once
License: MIT
Signed-off-by: Michael Avila <me@michaelavila.com>
2018-09-27 14:54:25 -07:00
86559e9e04 Merge pull request #5527 from ipfs/feat/pprof-lock
pprof: create HTTP endpoint for setting MutexProfileFraction
2018-09-27 18:49:46 +00:00
12746433ea test: add tess for /debug/pprof-mutex/ endpoint
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-27 03:44:44 +02:00
727bf49eff Merge pull request #5525 from overbool/fix/issue-#5055
fix(unixfs): issue #5055
2018-09-26 23:44:48 +00:00
50fffa2973 pprof: create HTTP endpoint for setting MutexProfileFraction
Allows to dynamically change the MutexProfileFraction to enable and
disable mutex profiling. It should be very useful for detecting
deadlocks, lock contention and general concurrency problems.

How to use:
To enable run: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=10
To disable: curl -X POST -v 'localhost:5001/debug/pprof-mutex/?fraction=0'

Fraction defines which fraction of events will be profiled. Higher it is
the lower performance impact but less reliable the result.

To fetch the result use:
go tool pprof $PATH_TO_IPFS_BIN http://localhost:5001/debug/pprof/mutex

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2018-09-26 21:24:49 +02:00
5d173bf365 fix(unixfs): issue #5055
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-26 18:51:00 +08:00
1e0d53fe3c Merge pull request #5496 from rob-deutsch/fix/5495
fixed tests of raised fd limits
2018-09-25 05:05:20 +00:00
30414a4c34 Merge pull request #5518 from ipfs/gx/update-stuff
gx: update go-log go-ipld-cbor
2018-09-24 13:45:42 +00:00
dac058f8be gx: update go-log go-ipld-cbor
(and friends)

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:36:29 -07:00
3a8afa6827 Merge pull request #5517 from ipfs/gx/go-libp2p-routing-2.6
gx: update go-libp2p-routing
2018-09-24 12:32:09 +00:00
074a1ab48e update for interface changes
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-09-24 05:24:30 -07:00
91833e288f gx: update go-libp2p-routing
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-24 14:03:57 +02:00
aada0cc1e2 added freebsd cross-compile to 'make check' tests
License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-24 20:35:06 +10:00
8cca57244c supressed fd util printing to output
Moved the fmt.Printf call from ManageFdLimit() to the calling code. ManageFdLimit() is called by tests and its annoying to have it output text

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-24 20:35:06 +10:00
182507d0d1 fixed test of raised fd limits
Raising FD limits was erroring when the OS's max was at the maximum signed integer value. Switched the code to using uint64 instead of int64.

fixed #5495

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-24 20:35:02 +10:00
ac53d3aaa4 Merge pull request #5494 from rob-deutsch/feat/publishquieter
add quieter option to name publish
2018-09-24 10:11:18 +00:00
1b8820f7f2 Merge pull request #5505 from overbool/fix/issue-#5217
fix(unixfs): issue #5217 (Avoid use of `pb.Data`)
2018-09-24 07:36:43 +00:00
286d935036 add quieter option to name publish
Added a quieter/Q option to 'name publish' that, consistent with 'add', only outputs the value that was published.

License: MIT
Signed-off-by: Rob Deutsch <rdeutschob@gmail.com>
2018-09-22 09:49:40 +10:00
47f3c4048d Add sessions to LS command
Uses sessions when fetching MerkleDAG

License: MIT
Signed-off-by: hannahhoward <hannah@hannahhoward.net>
2018-09-21 16:12:40 -07:00
238bd01224 Merge pull request #5503 from overbool/feat/print-version
feat(daemon): print version
2018-09-21 20:55:26 +00:00
73ac4a8705 Merge pull request #5507 from ipfs/fix/mk-commit
mk: embed CurrentCommit in the right place
2018-09-21 17:48:42 +00:00
0f3e199443 mk: embed CurrentCommit in the right place
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
2018-09-21 11:52:20 +02:00
48c3effac8 fix(unixfs): issue #5217
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-21 15:44:38 +08:00
7d7bca0375 feat(daemon): print version
License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
2018-09-21 14:44:08 +08:00